//demonstrating the 'if' statement.

#include <iostream>
using namespace std;

int main()
{
int a, b, c;
a = 2;
b = 3;

if(a < b) cout << "a is less than b\n";//this is and if statements "if a is less than b THAN...."

if(a == b) cout << "you won't know a thing!\n";

c = a - b;

cout << "c contains -1\n";
if(c >= 0) cout << "c is non-negative\n";
if(c < 0) cout << "c is negative\n";

cout << "\n";

c = b - a; //c now contains 1, for the code to follow c has been redefined
cout << "c contains 1\n";
if(c >= 0) cout << "c is non-negative\n";
if(c < 0) cout << "c is negative\n";
getchar();

return 0;
}